home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 60 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: malloc woes with watcom C
  5. Date: 1 Jan 1996 12:06:28 GMT
  6. Organization: Kalevi, Inc
  7. Message-ID: <4c8io4$3tq@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe5.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Dec 31, 1995 14:47:50 in article <malloc woes with watcom C>, 'Elliott
  15. Noel <jnoel@public.compusult.nf.ca>' wrote: 
  16.  
  17.  
  18. >My problem is that my program generates an exception and crashes during  
  19. >legitimate calls to malloc().  It always seems to happen after a few  
  20. >calls have already been made, and I can't localize the problem, just that 
  21.  
  22. >it occurs within the code for the malloc() function. 
  23.  
  24. The probability is about 0.99 that you have corrupted memory by 
  25.    1.  writing beyond the limits of an allocated block 
  26.    2.  freeing the same block more than once. 
  27.  
  28. The sad part:  finding the bug will not be easy.  The offending code may 
  29. be far away from the place where it finally crashes. 
  30. -- 
  31.  
  32. Pete 
  33.  
  34.  
  35.  
  36.  
  37.  
  38.